package com.xcms.news;

import java.sql.Timestamp;


public class News {
    private Integer id;
    private String title;
    private String content;
    private String url;

    public News(Integer id, String title) {
        this.id = id;
        this.title = title;
    }

    public News() {

    }

    public Integer getId() {
        return this.id;
    }

    public  void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    //注解，用来告诉java 编译器这是 重载
    @Override
    public String toString() {
        return "News{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", url='" + url + '\'' +
                '}';
    }
}
